<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>location</title>
</head>
 <script type="text/javascript">
        document.write(window.location.href);
 </script>
</head>
<body>

<h2> Location对象</h2>
<h2>location用于获取或设置窗体的URL，并且可以用于解析URL</h2>

</body>
</html>